// 使用严格模式
"use strict";

import * as methods from './methods'
import config from './config'

export default (option) => {
  config.setUserConfig(option)
  return {
    ...methods,
    install(Vue) {
      Vue.prototype.$get = methods.get
      Vue.prototype.$post = methods.post
      Vue.prototype.$put = methods.put
      Vue.prototype.$del = methods.del
    }
  }
}
